package com.aimashi.aimashibackendjudgeservice;

import com.aimashi.aimashibackendjudgeservice.rabbitmq.InitRabbitMq;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

//  如需开启 Redis，须移除 exclude 中的内容
//@SpringBootApplication(exclude = {RedisAutoConfiguration.class})
@SpringBootApplication
@EnableScheduling
@ComponentScan("com.aimashi")
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.aimashi.aimashibackendserviceclient.service")
public class AimashiBackendJudgeServiceApplication {

    public static void main(String[] args) {
        InitRabbitMq.init();
        SpringApplication.run(AimashiBackendJudgeServiceApplication.class, args);
    }

}
